<?php
	require_once "../../lib/config.php";	

	session_start();
	error_reporting(E_ALL | E_STRICT);
	ini_set('display errors', 1);
	date_default_timezone_set('Europe/London');
	$username ="";
	if(isset($_SESSION['idUser']))
	{
		$username = $_SESSION['username'];
	}
	else
	{
		echo '<script language="javascript">window.location.href="index.php"</script>';  
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><?php echo $websitename ?> - Administration</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/1.css" type="text/css"/>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function toggleMember(master,memberName){
	var checkList=document.getElementsByName(memberName);
	
	for(var i=0;i<checkList.length;i++)
		checkList[i].checked=master.checked;

}
</script>
<style type="text/css">
</style>
</head>
 
<body>
		<div id="wrapper1">
			<div id="wrapper2">
				<div id="header">
					
					<h1><a href="javascript:void(0)">&nbsp;<?php echo $websitename ?></a><!--<span>A Tranquil Template</span>--></h1>
			
					<ul id="nav">
			
					<!--<li><a href="#intro">Introduction</a></li>
					
					<li><a href="#about">About</a></li>
					
					<li><a href="#examples">Examples</a></li>
					
					<li><a href="#contact">Contact</a></li> -->
					
                    
                    <!---cho nay khong can thiet --->
					</ul>
				</div>
					
                <div id="container">
                
                    <p class="description">
            
                             <span><h3>Administration's Site</h3></span>		
                    
                    </p>
                    <table width="100%" border="0" cellspacing="0">
                        <tr>
                            <td width="80%" valign="top">
                                <?php require_once "loadMainContent.php";?>                            
                            </td>
                            <td valign="top" width="20%">
                            <div id="sidebar">
                            <!--menu admin -->
                                <ul id="menuhor">
                                    
                                    <a href="../../index.php"><u>Back to Homepage</u></a>
                                    <br/>
                                  	 
                                    <li style="display:none">
                                        <a href="javascript:void(0)">Manage Articles</a>
                                        <ul>
                                            <li>
                                                <a href="main.php?jmp=article&to=idbview">View all Articles</a>
                                            </li>
                                            <li>
                                                <a href="main.php?jmp=article&to=idbadd">Add more Articles</a>
                                            </li>
                                        </ul>
                                     </li>
                                    
                                    <li>
                                        <a href="main.php">Home Administrator</a>                                        
                                     </li>
                                    
                                    <li>
                                        <a href="javascript:void(0)">Manage Items</a>
                                        <ul>
                                            <li>
                                                <a href="main.php?jmp=items&to=idbview&page=0">View Items</a>
                                            </li>
                                            <li>
                                                <a href="main.php?jmp=items&to=idbadd">Add more Items</a>
                                            </li>
                                        </ul>
                                     </li>
                                                                     
                                    
                                     <li>
                                        <a href="javascript:void(0)">Manage Categories & Types</a>
                                        <ul>
                                            <li>
                                                <a href="main.php?jmp=catetype&to=idbview">View Categories & Types</a>
                                            </li>
                                            <li>
                                                <a href="main.php?jmp=types&to=idbadd">Add more Type</a>
                                            </li>
                                            <li>
                                                <a href="main.php?jmp=categories&to=idbadd">Add more Categories</a>
                                            </li>
                                        </ul>
                                     </li>
                                    
                                    <li>
                                        <a href="javascript:void(0)">Config</a>
                                        <ul>
                                            <li>
                                                <a href="main.php?jmp=profile&to=idbedi">Setting for website</a>
                                             </li>
                                             <li>
                                                <a href="main.php?jmp=about&to=idbedi">Edit AboutUs's Content</a>
                                             </li>
                                             <li>
                                                <a href="main.php?jmp=term&to=idbedi">Edit Term's Content</a>
                                             </li>
                                             <li>
                                                <a href="main.php?jmp=contact&to=idbedi">Edit Contact's Content</a>
                                             </li>
                                            <li>
                                                <a href="main.php?jmp=profile&to=idbpas">Change Password</a>
                                             </li>
                                             <li>
                                                <a href="main.php?jmp=profile&to=idbpro">Update Profile</a>
                                             </li>
                                             <li>
                                                <a href="main.php?jmp=profile&to=idbout">Sign out</a>
                                             </li>
                                         </ul>
                                     </li>                                
                                    
                               
                                </ul>		
                            <!--end menu admin-->
                            </div>
                            </td>
                        </tr>
                    </table>	
                 </div>
			
	  		</div>	
	    </div>
	
        <div id="footer">
                        
                                <p>Template design by <a href="http://www.sixshootermedia.com">Six Shooter Media</a>. Sponsor: <a href="http://www.yours4money.com" rel="nofollow">Casino</a>.<br />
                                    <!-- you can delete below here -->
    
                                    © All your copyright information here.</p><br /><br />
    
        </div>
</body>
</html>